home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sprite 1984 - 1993
/
Sprite 1984 - 1993.iso
/
src
/
lib
/
c
/
unixSyscall
/
RCS
/
setgroups.c,v
< prev
next >
Wrap
Text File
|
1992-03-27
|
2KB
|
95 lines
head 1.1;
branch ;
access ;
symbols sprited:1.1.1;
locks ; strict;
comment @ * @;
1.1
date 88.06.19.14.31.56; author ouster; state Exp;
branches 1.1.1.1;
next ;
1.1.1.1
date 92.03.27.19.07.00; author kupfer; state Exp;
branches ;
next ;
desc
@@
1.1
log
@Initial revision
@
text
@/*
* setgroups.c --
*
* Procedure to map from Unix setgroups system call to Sprite.
*
* Copyright 1986 Regents of the University of California
* All rights reserved.
*/
#ifndef lint
static char rcsid[] = "$Header: setgroups.c,v 1.2 86/10/14 14:33:36 nelson Exp $ SPRITE (Berkeley)";
#endif not lint
#include "sprite.h"
#include "proc.h"
#include "compatInt.h"
/*
*----------------------------------------------------------------------
*
* setgroups --
*
* Procedure to map from Unix setgroups system call to
* Sprite Proc_SetGroupIDs.
*
* Results:
* UNIX_SUCCESS - the call was successful.
* UNIX_ERROR - the call was not successful.
* The actual error code stored in errno.
*
* Side effects:
* None.
*
*----------------------------------------------------------------------
*/
int
setgroups(ngroups, gidset)
int ngroups;
int *gidset;
{
ReturnStatus status; /* result returned by Proc_SetGroupIDs */
status = Proc_SetGroupIDs(ngroups, gidset);
if (status != SUCCESS) {
errno = Compat_MapCode(status);
return(UNIX_ERROR);
} else {
return(UNIX_SUCCESS);
}
}
@
1.1.1.1
log
@Initial branch for Sprite server.
@
text
@d11 1
a11 1
static char rcsid[] = "$Header: /sprite/src/lib/c/unixSyscall/RCS/setgroups.c,v 1.1 88/06/19 14:31:56 ouster Exp $ SPRITE (Berkeley)";
@